package model.util;

public class Dimension {
	public Float width;
	public Float height;

	public Dimension() {
		this.width = 0f;
		this.height = 0f;
	}

	public Dimension(float width, float height) {
		this.width = width;
		this.height = height;
	}

	public Float getWidth() {
		return width;
	}

	public void setWidth(float width) {
		this.width = width;
	}

	public Float getHeight() {
		return height;
	}

	public void setHeight(float height) {
		this.height = height;
	}

	@Override
	public boolean equals(Object obj) {
		if (obj !=  null && obj instanceof Dimension) {
			Dimension other = (Dimension) obj;
			return width.equals(other.width) && height.equals(other.width);
		}
		return false;
	}

	@Override
	public String toString() {
		return "Dimension [width=" + width + ", height=" + height + "]";
	}

}
